<%--
  Created by IntelliJ IDEA.
  User: 57998
  Date: 2020/10/28
  Time: 21:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
    pageContext.setAttribute("APP_PATH", request.getContextPath());
%>

<html>
<head>
    <meta charset="UTF-8">
    <script type="text/javascript" class="autoinsert" src="${APP_PATH }/js/jquery-2.2.0.min.js"></script>
    <!-- bootstrap规定使用前置设置 -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="${APP_PATH }/bootstrap-3.3.7-dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${APP_PATH }/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
    <link rel="stylesheet" href="${APP_PATH }/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="${APP_PATH }/css/houtai_updateuserinfo.css" />
    <script type="text/javascript" class="autoinsert" src="${APP_PATH }/js/layer.js"></script>
    <link rel="stylesheet" type="text/css" href="${APP_PATH }/css/layer.css" />
    <title>修改时长信息</title>
</head>
<body>

<%@ include file="houtai_left.jsp"%>
<%@ include file="houtai_top.jsp"%>

<input type="hidden" id="show_left" value="${show_left}" />
<script type="text/javascript">
    $("div[id*='left_y']").hide();
    var now_left = $("#now_left").val();
    $("#" + now_left).show();
    var show_left = $("#show_left").val();
    $("#" + show_left).attr("style", "background: #293038;");
</script>

<div class="main">

    <div class="main_top">
        <h5 class="main_top_text">修改时长信息</h5>
    </div>

    <form action="${pageContext.request.contextPath}/houtai/updatelooktime" method="post" name="form_add">
        <div class="main_content">
            <c:forEach var="U" items="${looktime}">
                <input type="hidden" id="id" name="id" value="${U.id}" />
                <div class="main_name">
                    <div class="main_text">用户id：</div>
                    <input type="text" id="uid" name="uid" value="${U.uid}"/>
                </div>
                <div class="main_name">
                    <div class="main_text">影片id：</div>
                    <input type="text" id="fid" name="fid" value="${U.fid}"/>
                </div>
                <div class="main_name">
                    <div class="main_text">观影时长(秒)：</div>
                    <input type="text" id="time_temp" name="time_temp" value="${U.time_temp}" />
                </div>
            </c:forEach>
            <button class="main_show_button" onclick="yes_update()"><a href="#" class="main_show_a">确认修改<i class="fa fa-check-square-o" style="padding-left: 5px;"></i></a></button>
        </div>

        <script type="text/javascript">
            function yes_update() {
                if($("#uid").val() != "" && $("#fid").val() != "" && $("#time_temp").val() != ""){
                    form_add.submit();
                }else{
                    layer.msg('请将信息完整输入!', {
                        time: 2000
                    });
                }
            }
        </script>

</div>

</body>
</html>

